#ifndef __RESULT_RECORDER__
#define __RESULT_RECORDER__
#include "define.h"

class CResultRecorder
{
private:
	struct CLog
	{
	public:
		std::vector<CString> m_content;
		CString m_filename;
	};
public:
	CResultRecorder():m_seq(-1){};
	//in
	void init(CString workDir);
	void newRecord(const std::vector<CString>& config
				  ,const std::vector<docResult>& result
				  ,const std::vector<double>& rates
				  ,const _2DMatrix& matrix);
	//out 
	CString getCurrentRecord();
	CString getNextRecord();
	CString getPrevRecord();
	CString getConcrete();
private:
	CString getRecord();
	CString			  m_workDir;
	std::vector<CLog> m_logs;
	int				  m_seq;
};
#endif